package com.thd.springboottest.jvmoptimization.dto;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

public class User {
    private String name;
    private List<String> oo = new ArrayList<String>();
    public User(String name){
        this.name = name;
    }

    public User(){
        this.name = "name_" + Math.random() + "";
        for(int i = 0 , j = 1000 ; i < j ; i++){
            oo.add("oo_" + UUID.randomUUID());
        }
    }

    public void increase(int ct){
        if(null == this.name){
            this.name = "";
        }
        for (int i = 0 ; i < ct ; i++) {
            this.name += (this.name +UUID.randomUUID());
        }

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<String> getOo() {
        return oo;
    }

    public void setOo(List<String> oo) {
        this.oo = oo;
    }
}
